import request from '@/utils/request'

export const getBill = (start, end, pageIndex, partnerName) => {
  return request({
    method: 'get',
    url: '/api/order-service/report/partnerCollect',
    params: {
      pageIndex,
      partnerName,
      start: '2022-11-01',
      end: '2022-11-19'
    }
  })
}
export const getOrderCount = () => {
  return request({
    method: 'get',
    url: 'http://likede2-admin.itheima.net/likede/api/order-service/report/orderCount?start=2022-11-01+00:00:00&end=2022-11-19+23:59:59'
  })
}
export const getOrderAmount = () => {
  return request({
    method: 'get',
    url: 'http://likede2-admin.itheima.net/likede/api/order-service/report/orderAmount?start=2022-11-01+00:00:00&end=2022-11-19+23:59:59'
  })
}
export const getTotalBill = () => {
  return request({
    method: 'get',
    url: 'http://likede2-admin.itheima.net/likede/api/order-service/report/totalBill?start=2022-11-01+00:00:00&end=2022-11-19+23:59:59'
  })
}
export const getSearch = () => {
  return request({
    method: 'get',
    url: 'http://likede2-admin.itheima.net/likede/api/user-service/partner/search?pageIndex=1&pageSize=100000'
  })
}
